<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2021/9/23
  Time: 12:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>IframeTest</title>

    <script>
        function go(){
            var url = document.getElementById("url").value;
            document.getElementById("iframe1").src=url;

        }
    </script>


</head>
<body>

<div>
    <p>please input URL</p>
    <p>
        <input type="text" id="url" value="https://www.bilibili.com/video/BV1aE41167Tu?p=24&spm_id_from=pageDriver">
        <input type="button" value="submit" onclick="go()">
    </p>
</div>

<div>
    <iframe id="iframe1"  style="width:100%;height: 500px"></iframe>
</div>
</body>
</html>
